# include <stdio.h>
# include <string.h>
int main()
{
char strin[20], reverse[20] ;
int i, j, l ;
printf("Enter a string : ") ;
scanf("%s", strin) ;
for(l = 0 ; strin[l] != '\0' ; l++) ;
for(i = l - 1, j = 0 ; i >= 0 ; i--, j++)
reverse[j] = strin[i] ;
reverse[j] = '\0' ;
if(strcmp(strin, reverse) == 0)
printf("\nThe given string is a palindrome\n\n") ;
else
printf("\nThe given string is not a palindrome\n\n") ;
return 0;
}
